<template>
  <el-config-provider :locale="zhCn">
    <router-view />
  </el-config-provider>
</template>

<script setup lang="ts">
import zhCn from 'element-plus/es/locale/lang/zh-cn'
onMounted(() => {
  nextTick(() => {
    // 初始化主题样式
    document.oncontextmenu = e => e.preventDefault();
  })
})
</script>

<style>
@font-face {
  font-family: 'iconfont';
  src: url('./assets/i/iconfont.ttf?t=1690429080736') format('truetype');
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}
</style>
